﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace net.veekee.common.data.csv
{
    public abstract class ACSVFile : AFile
    {
        protected char fieldSeparator = ';';

        public ACSVFile(String filename, char separator)
            : base(filename)
        {
            this.fieldSeparator = separator;
        }

        protected String RemoveDisallowedChars(String s)
        {
            return s.Replace(fieldSeparator, ' ');
        }

        public override void Dispose()
        {
            this.Save();
        }
    }
}
